package com.yulongtian.controller;

import com.yulongtian.utils.R;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yulongTian
 * @create 2022-10-29 14:14
 */
@RestController
public class HelloController {

    @RequestMapping("/hello")
    //设置权限
    @PreAuthorize("@ex.hasAuthority('system:dept:list')")
    public String hello() {
        return "hello";
    }

}
